OTP\Handler\Forms\FormCraftBasicForm A

Total Complexity 55
Dependencies 7
Dependents 0
Total lines 288
Lines of code 199
Logical lines of code 117
Comment lines 0
Methods 19
Properties 0

Methods 19

Method Rating Maintainability Complexity Lines of code
validate_formcraft_form_submit()
A
49 7 31
handleFormOptions()
S
51 7 24
getFieldIDs()
S
59 6 13
handleForm()
S
58 4 13
routeData()
S
63 4 10
checkIfVerificationNotStarted()
S
61 3 13
enqueue_script_on_page()
S
56 2 17
getPhoneNumberSelector()
S
70 3 6
_handle_formcraft_form()
S
66 3 8
_send_otp_to_phone()
S
63 3 10
_send_otp_to_email()
S
63 3 10
handle_failed_verification()
S
68 2 7
isFormCraftPluginInstalled()
S
78 2 3
__construct()
S
60 1 13
sendJSONErrorMessage()
S
70 1 6
unsetOTPSessionVariables()
S
79 1 3
handle_post_verification()
S
83 1 3
isVerificationEnabledForThisForm()
S
80 1 3
getFormCraftFormDataFromID()
S
69 1 6